﻿#include "ServiceDemoVoltage.h"

using namespace BusinessLayer;

DYNAMIC_CREATE(ServiceDemoVoltage)

ServiceDemoVoltage::ServiceDemoVoltage()
{
    BusinessLayer::ContainerForDevice::instance.getDataPool()
            ->RegisterDataCallback("voltage.voltage",
                                   [&](QVariant v) -> void
    {
        emit DataChanged("voltage.voltage", v);
    });
}
